-- villager_fighter
-- created by panyl
-- 地牢格子：村民

return {
    autoFight = function(grid)
        local pos = grid:getPos();
        if VillagerM.canTakeBonus(pos) then
            -- 村民领奖
            DungeonActionM.go("villager_bonus", pos);
            return true;
        elseif grid.took and VillagerM.canArm(pos) then
            -- 武装
            return DungeonActionM.go("arm_villager", pos);
        end
        return false;
    end,
};
